package com.downloading.bezoyaapp;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ListView;

import com.downloading.bezoyaapp.R;
import com.downloading.bezoyaapp.support.list.CustomAdapter;
import com.downloading.bezoyaapp.support.list.ListData;

public class Embarazo extends Activity {

	ListView lista;
	ArrayList<ListData > details;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_embarazo);
        
        lista = (ListView)findViewById(R.id.embarazoList);
        
		details = new ArrayList<ListData>();

		ListData detail;
		detail = new ListData();
		detail.setBackground(R.drawable.elemento);
		detail.setText("Antes");
		details.add(detail);
		
		detail = new ListData();
		detail.setBackground(R.drawable.elemento);
		detail.setText("Los 9 meses");
		details.add(detail);
		
		detail = new ListData();
		detail.setBackground(R.drawable.elemento);
		detail.setText("Lactancia");
		details.add(detail);
		
		detail = new ListData();
		detail.setBackground(R.drawable.elemento);
		detail.setText("Infancia");
		details.add(detail);
		
		detail = new ListData();
		detail.setBackground(R.drawable.elemento);
		detail.setText("Para ti");
		details.add(detail);
		
		lista.setAdapter(new CustomAdapter(details, this));

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_embarazo, menu);
        return true;
    }
    
    
    
}
